package com.xiangban.dao;

import com.xiangban.model.AccompanyReceiveOrder;
import com.xiangban.model.AccompanyReceiveStatus;
import com.xiangban.model.Order;
import com.xiangban.model.dto.AccompanyReceiveOrderDto;
import com.xiangban.model.dto.AccompanyReceiveStatusDto;
import com.xiangban.model.dto.OrderDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author ly
 * @date 2021/12/11 14:28
 */
@Repository
public interface AccompanyReceiveStatusMapper {
    List<AccompanyReceiveStatusDto> getStatusByOrderNo(Order order);

    Integer getOrderNoCountByStatus(AccompanyReceiveOrder accompanyReceiveOrder);

    void updateStatusByReceiveNo(AccompanyReceiveStatus accompanyReceiveStatus);

    void insertBinding(AccompanyReceiveOrderDto accompanyReceiveOrderDto);

    List<AccompanyReceiveStatus> selectARSByOrderNoAndStatus(OrderDto orderDto);

    AccompanyReceiveStatus getStatusByReceiveNo(AccompanyReceiveOrderDto accompanyReceiveOrderDto);

    AccompanyReceiveStatusDto getStatusOne(AccompanyReceiveOrder accompanyReceiveOrder);
}
